def pr(x):
    print(id(x), type(x), x)


def sep():
    print('-' * 32)


dict1 = {'a': 1, 'b': 3, 'c': 6}
pr(dict1)
dict2 = dict(a=1, b=3, c=6)
pr(dict2)
dict3 = dict(zip('abc', (1, 3, 6)))
pr(dict3)
dict4 = dict.fromkeys('abc', None)
pr(dict4)
# dict5 = dict([1, 2, 3])  # TypeError: cannot convert dictionary update sequence element #0 to a sequence
# pr(dict5)
dict6 = dict((('a', 1), ('b', 3), ('c', 6)))
pr(dict6)

pr(dict1.items())
for x, y in dict1.items():
    print(x, y)

for k in dict1.keys():
    print(k)

for v in dict1.values():
    print(v)

sep()
books = {'Ben': '13800897658',
                'Alien': '13710976543',
                'Helen': '13100349319'}
keys = books.keys()
pr(keys)

